package com.topc.others.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.topc.base.model.PageParams;
import com.topc.base.model.PageResult;
import com.topc.others.model.dto.SaveArticleCommentDto;
import com.topc.others.model.dto.SaveArticleInfoDto;
import com.topc.others.model.po.ArticleCommentInfo;
import com.topc.others.model.po.ArticleInfo;
import com.topc.others.model.vo.ArticleCommentShowVo;
import com.topc.others.model.vo.ArticleDetailShowVo;
import com.topc.others.model.vo.ArticleShowVo;

/**
 * <p>
 * 文章 服务类
 * </p>
 *
 * @author itcast
 * @since 2024-01-22
 */
public interface IArticleInfoService extends IService<ArticleInfo> {

    void saveArticleInfo(SaveArticleInfoDto saveArticleInfoDto);

    void updateInfoById(Long id, SaveArticleInfoDto saveArticleInfoDto);

    void deleteInfoById(Long id);

    PageResult<ArticleShowVo> searchByPage(PageParams pageParams, String searchInfo);

    ArticleDetailShowVo searchDetailById(Long id);

    PageResult<ArticleCommentShowVo> searchCommentByNumber(PageParams pageParams, String userNumber);

    void saveCommentInfo(SaveArticleCommentDto saveArticleCommentDto);
}
